readline: fix cross-compilation for linux
lua5-2: fix cross compilation for linux