Fix permissions, hhvm build and faster compilation