Added conditional compilation into -nodata_gen option for compile script