luajit compatibility in objectmap and foundation enums, fixed test thread shutdown