fixed cmake syntax for foreach
typo
improved cmake infrastructure: options are checked against libraries
adapted to new defines (VIENNAMESH_WITH_NETGEN_OPENCASCADE)