Fix build warnings on mac and linux.
Merge pull request #12 from metajack/warning-police

Fix build warnings on mac and linux.