Update rviz.cpp

Fix compilation on OS X. See #64.
Merge pull request #66 from NikolausDemmel/patch-2

Update rviz.cpp