adapted osdeps for current version of gentoo