Added framework header for Mac OS X. Fixed some warnings from clang