fix build of minilua by moving LDLIBS to the end

See http://stackoverflow.com/questions/9253200