Makes the code compile with MinGW

Issue: #46