Simplify the lua macosx hack