Responsiveness hack for Mac OS X

Dispatching CPU hot spot codes into background thread(serail queue)
with Grand Central Dispatch.
Hacks for Xcode

Removing c++ flags: -DHAVE_CONFIG_H
Adding c++ flags: -DHAVE_SYS_MMAN_H