Patching lua bind to work around some warnings during release builds.