Mingw port. Remove some unused code.