some compilation tweaks
Merge branch 'master' of github.com:kuitang/betheDiscrete