Fixed the cmake
Fixed jpeg library error
Use static libraries
Make a Mac OSX bundle out of it