fixed some warnings
misc compilation fixes for clang++ and added gcwinterface.cpp
added Makefile.osx to compile on OS X
moved gcwinterface to its own folder and fixed libpng bit depth bug
Merge pull request #8 from JacopoSantoni/master

Fix libpng bug introduced by my previous pull request + misc fixes