gentoo linux support
Merge pull request #1803 from bebugz/patch-1

gentoo linux support