Check if -Wl,-pie should be used instead of -pie in LDFLAGS