Fix gcc/clang compilation errors and turn off exhaustive number test