move StatusCodes enum out of ManagedExec() - does not compile in gcc but only in clang