CPPFLAGS and LDFLAGS should usually be on the right side of ./configure