Ignore the warnings ... it would be nice if someone cleaned up the C sources so they compiled without them but they don't hurt anything. It's not a big priority for anyone in the AOLserver community, apparently.
PG 7.4 works fine with AOLserver 4. I'm not sure why you're getting the makefile error when trying to compile the driver, I've never seen that.