fixed compiler warnings
first draft to build luagi with cmake for less pain on OSX