Fix CMAKE compile flag for FWD_DYN settings