adapted cmake find scripts