mingw port: M2 links