Fix grammar generation on OSX