adopted to latest opengm changes
Merge branch 'master' into ilastik_master