Make it work fine with glibc 2.5

Also, add "-Wall -g -O2" as default CFLAGS and build well with 'em (-Wall).