fix type conversion and missing forward declaration warnings
Merge pull request #43 from marclefrancois/master

Fixed some xcode warnings