Add support for Mac OS X to BBsim, modify flags and sim source includes
Modify coordinate system files to allow compilation for bbsim
Update and reorganize linkfile
Modify variable names to allow compilation for sim