Free each function's ProfTransRec after optimizing it

Summary: And don't allocate a ProfTransRec for non-profiling translations.

Reviewed By: @bertmaher

Differential Revision: D1477165
cmake installations should no longer put files in hphp and now put them in hhvm

Summary: When installing hhvm all the lib files should now be in lib.../hhvm rather than lib.../hphp.

Reviewed By: @ptarjan

Differential Revision: D1477442