Fix build for ubuntu and mingw