added/corrected LDFLAGS handling in configure