Look at bugs #18067 #19722. Those fixes need to go in the mentioned ebuilds
Im not having enough time to work on gentoo NOW, i can help on these later.
Fixed.
Fixed