adopted to new opencmiss build system
some cleanup