Updating osxbuild to work with OS X 10.7+/XCode 4.x.
Updated check for MINGW compile

Needed to work on both mingw32 and mingw64.
Don't use symbol names read/write.

Fixes incompatible redefinition error on mingw.
mingw script updates
sox-14.4.1rc2