Generate define() cache file

When running the test it should create a file with defines() which allow IDEs for code completion and perhaps allow HHVM to work.