Fixed error in OFshared_ptr when using Visual Studio 2008.
Fixed test failure on 64 bit systems.
Fixed intel compiler issue on Mac OS X. Thanks to Hans Johnson
for the hint and proposed patch.