only parse parameters on master and bcast params to workers
added missing header
fixed missing cmake constant causing mpi to crash