Merge pull request #274 from Alexpux/mingw-w64-builds

Fix tests build.
Merge commit '6d69e0a90a8691557009f2292fb88952b14bc91d' into mingw-w64-builds