fix the type declaration on Windows