use FIND_PACKAGE for netCDF

As a fallback, the old FIND_LIBRARY is still in place.

This fixes build errors with static builds.