Fixed a couple of compiler warnings
Merge pull request #309 from jamesrhurst/compiler-warnings

Fixed a couple of compiler warnings