minor changes in opengm
added pgmlink