Appended LDFLAGS to Makefile input to make sure all libs are picked up.