add switch for MPI because it will detect OpenMPI but not compile.
sometimes nanosleep is defined already.