fix LDFLAGS on ubuntu