Version which works also on MacOSX 10.6. Somehow I still have to pass -lc++abi on the link line.