OSX 10.9 clang sanitizer fix

This single commit fixes issue #435