Fix code in order to build with the option warnings are errors