Fixed function prototypes for mingw.