Updates configure and Makefile

Also slightly modifies logic used to locate gracelib.o when linking.