grammar compilation compatibility with windows