Fix LUA and SDL builds.