add --prof flag to allow profiling builds