Following the change from static to dynamic linking, on Apple (on Linux and Windows this problem doesn't occur) RViz crashes at startup with a segfault.
The problem was traced back to the params["externalWindowHandle"] = Ogre::StringConverter::toString(window_id); line, in render_system.cpp (line 428). When it is commented out, the segfault doesn't happen, but, of course, RViz starts with the render window detached from the application window.
Proposed Solution: apparently, updating to the latest version of Ogre fixes the problem.