The libraries were added to LDFLAGS.  I added them to LIBS instead