Fix usage of typedef as struct on Windows.