Check for dependencies, and fail if they aren't available.