[mingw] updated w32api and mingwrt to 4.0.1 and some cleanup

see title