Removed unnecessary construction of a SharedPtr object.
For Travis CI - switch CI build to use OS X build environment.