Fix loading functions.
Merge pull request #261 from Alexpux/mingw-w64-builds

Fix loading functions.