Merge pull request #10 from opengm/master

from opengm master to my fork
fixed huge bug in ad3 wrapper
Merge pull request #137 from DerThorsten/master

fixed huge bug in ad3 wrapper