Add datasets to compile_defs.py and improve output control