MinGW support

MinGW support for SConstruct script. Build now properly detects MinGW and finds dependencies correctly.