Use the official SDK toolchain to build. This avoids:
a ) having to make it static
b ) having to compile the exact same libs as GPH used (SDL_inifile, libmad, tremor etc)
c ) hassle
hwEq_change() may need a prototype sticking in somewhere
Edit config.mak to point to the compiler/toolchain...