Fix to bug #438 http://bugs.skysql.com/show_bug.cgi?id=438
Fixed some compiler warnings, added header includes, return values etc.
Merge pull request #4 from skysql/MAX-119

Fix to bug #438 http://bugs.skysql.com/show_bug.cgi?id=438