Allow lua5 to build as a dylib on Darwin