Build error on Mac OS X 10.7.3 (Lion)

Fixes issue #9 on Mountain Lion.

It is more-less dirty for lion but it should not affect other OSes till they are not define __BLOCKS__.

Also the test are fixed to be working on Mac OS X.