Define MACOS when building for OS X

The library uses this define to enable OS X specific functionality in general, even if none of those snippets actually have been strictly required so far.

Avoid including bundleloader.h, requiring linking to extra libraries/frameworks, if NO_DYNAMIC_VP is defined.