Improve batch mechanism - 3rd try

Diff from 2nd one:
 . Integrated Andrew and Tyler's suggestion on batchIn script and function prototypes declaration in headers;
 . Fix a CMake Error on RHEL6 by preventing it to check the sanity of CXX compiler for the oBIX project
Should we note this as a limitation? Is there a workaround? Is this a bug to be fixed in future releases?