Use lua_compare() in 5.2 since lua_equal() is gone