Fix some build warnings, add to_upper_case in utilities.h