Moved all MiscUtils code to a namespace, this greatly reduces compilation
times when a modification is done on MiscUtils code.