Made compiling work with Mingw for pure Rust libraries

Closes https://github.com/bvssvni/rust-empty/issues/123