Fixed bad permissions and added Compilation Time support