added new cmake flag (COMPILE_ONLY_LIBBATCH) to allow building only dynamic library for the TMS's underlying batch scheduler