need to define -std=gnu++0x with mingw
remove extraneous includes
don't try to use "pwd -W" when using mingw on linux

it's only applicable when building with mingw on windows
reorder linker args
add -std=gnu++0x flag I missed