fixed lua test compiling and linking.