update cpp template to remove the debug flag for Mac systems