Don't build libraries with external dependencies if they are not found