Fix build of java bindings on mingw
Merge pull request #279 from taka-no-me:mingw_java