Fixed link error when cross-compiling with mingw.
Merge pull request #74 from mditzel/master

Fix #73: link error when cross-compiling with mingw.