Merge pull request #1 from opengm/master

add commits from opengm/master
add cmake parameter for warning level
Merge pull request #14 from joergkappes/master

Warning Level
Merge pull request #13 from bekaus/master

GraphicalModel::getFunction