Fixes #40
Fixes #45
Merge branch 'master' into issue33
use ADD_FLEX_BISON_DEPENDENCY only when both bison and flex are available.