You have an old MySQL installed. ScriptBasic MySQL interface was tested using MySQL v3.23. Older versions do not support mysql_real_escape_string, mysql_change_user and mysql_character_set_name functions. To be able to compile the interface for this older version edit the mysqlinterf.c file and search the line:
#define VERSION323 1
and change it to
#define VERSION323 0
This will switch off the use of these functions, however be sure that your BASIC program does not use the functions mysql::ChangeUser, mysql::EscapeString and mysql::CharacterSetName.