OS X build

I've ported this project to OS X Mountain Lion (10.8)
There are several work-around to bypass build and test problems

1. Default behavior for undefined symbols in Plugin Module is throwing error. Just add the linker option `-undefined dynamic_lookup` to work as Linux and Windows.

2. Xcode tends to use libc++ standard library instead of libstdc++ 4.2 (which is too old), but in command line it use libstdc++ by default, so I forced it to use libc++

All the tests are passed