Linking lib rt

* add LINK_RT opengm-cmake-env variable
* use it in commandlinetool cmake-code

todo: test under Mac and Windows