Yes the proper fix would be to recompile.
But for me it was easier to just downgrade mysql because I have made so many changes to my libcod source that it won't work without updating my mod.
Also useful for those that downloaded the libcod binaries and don't know how to compile.