Fix building in mono and remove a few compiler warnings highlighted by building with xbuild
Merge pull request #12 from smalldave/fixmonobuild

Fix building in mono and remove a few compiler warnings highlighted by b...