Make D2D library dependencies conditional on if they are found with find_package or not.