Fix mysql remap's build files

The current build files produce a binary that has undefined symbols
(relating to the modules in lib/). To include these symbols, need to use
the `-no-undefined` flag.

Other structural changes make mysql remap look like other modules that
use a lib directory.