Fix build error on non-linux machines.
Merge pull request #545 from stal888/patch-3

Fix build error on non-linux machines.