Update cmake find modules

Supersedes #310.