Fix build on gentoo

Hey,

This change fixes issue https://github.com/brianmario/charlock_holmes/issues/10 and https://github.com/brianmario/charlock_holmes/issues/32