Update rviz.cpp

Fix compilation on OS X. See #64.