Fixed some functions (typo) and added conditional compilation of the fmod_errors.h part.