added OPENFRAMEWORKS BUILD_TYPE to MINGW ARCH

various fixes including bzero replacement with memset, extra defines
checks so endian swap only happens OSX/IOS, etc
now compiles & links in CB+MinGW build env