Fix build on linux.
Merge pull request #8 from metajack/linux-build-fixes

Fix build on linux.