Fix several BlueGene/Q portability issues
Work around a clang bug: vec<T>(...) is troublesome
All non-mpi unit tests pass on BlueGene/Q