Fix compile and install error under debian like distributions.
Ref: http://aaronin.jp/viewtopic.php?p=488438#488438