fixes for cmake and configure building systems with cmaes