Resolve build problems on Mountain Lion.

Use the riak bundled rebar, as the currently bundled version doesn't use
honor port_env options.

Correctly detect Mountain Lion, and no longer apply the -m32 and -arch
i386 build options due to false detection of other Mac OS X version.