Fix warning about reaching end of non-void function.
Fix warning about deprecated cast from string to char *.
Merge pull request #34 from plattrap/master

Compiler warnings