TS-2711 Make sure the LUAJIT ldflags are set properly for OSX.
TS-2711 Use the right define to detect Darwin