issue #5606, fix lua binding compile error