Fix Rift build on mingw-w64