Fix compile and install error under debian like distributions.

Ref: http://aaronin.jp/viewtopic.php?p=488438#488438

Sorry about the fact that it's on master branch, I'm a nub cake.