mingw support + switched to gnu++0x