I want to compile FreedroidRPG on an old mac 10.3.9 ibook G3, and i keep getting these errors when i try and make it

make all-recursive
Making all in src
gcc -DHAVE_CONFIG_H -I. -I.. -I. -DMACOSX -g -O2 -Wall -DFD_DATADIR='"/usr/local/share/freedroidrpg"' -ffast-math -I/usr/local/include -I/usr/local/include/SDL -D_THREAD_SAFE -F/System/Library/Frameworks/Carbon.framework -F/System/Library/Frameworks/Cocoa.framework -MT menu.o -MD -MP -MF .deps/menu.Tpo -c -o menu.o menu.c
menu.c: In function `DoMenuSelection':
menu.c:326: error: `SDL_BUTTON_WHEELUP' undeclared (first use in this function)
menu.c:326: error: (Each undeclared identifier is reported only once
menu.c:326: error: for each function it appears in.)
menu.c:330: error: `SDL_BUTTON_WHEELDOWN' undeclared (first use in this function)
menu.c: In function `ChatDoMenuSelection':
menu.c:687: error: `SDL_BUTTON_WHEELUP' undeclared (first use in this function)
menu.c:691: error: `SDL_BUTTON_WHEELDOWN' undeclared (first use in this function)
menu.c: In function `do_savegame_selection_and_act':
menu.c:2049: warning: passing arg 3 of `scandir' from incompatible pointer type
make[2]: *** [menu.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


this is just what appears after i enter sudo make and hit enter. I found out why it does this, i have no mouse wheel. I fixed this error i put on here, but i still have problems with takeover.c. same problem, but lots more complicated to fix (i just deleted the part with this in it in the other ones), so i need help with that now.