Only install build dependencies if they aren't already installed.