lua-5.1, lua-5.2: fix typo / copy-n-paste mistake in configurePhase

s/LDLAGS/LDFLAGS/g in both packages