Fix compiling issues on mac OS X

Added linking flags to remove debug information(-S) for release version on mac.
Removed linking flags that were for linux(-Wl,-O1 -Wl,--discard-all
-Wl,--no-undefined). Added flag to append lua code to
executable(-sectcreate) [Flags were set in SConstruct and
BuildUtil.py]. Also in resouce.cpp I added mapping to hook into the data
section of the executable that pertained to the lua code. Added code to
to get virtual memory address.
Fix problem when compiling in linux

In python sys.platform outputs linux, linux2, or linux3, which
I did not account for until now. Also, I made the variable
_binary_luascript_luac_size match the same type as the apple
version.
Merge branch 'fix_mac_compile' with github

Conflicts:
	site_scons/BuildUtil.py
	site_scons/site_tools/luac.py
	src/resource.cpp