Fixed Windows compile with MinGW 4.8.2