Make mongoose compile on mingw environment