MacOS X Bundle target.
Fixed many warning with 'const'.