Fixed compilation on osx and linux, added code license and credits files to the OS X .app