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