Edit: Problem fixed. I found help on the official Gentoo forums.