fix various gentoo bootstrap issues