Fix dependency handling which is now an ugly mess but works for MSVS's
boost wrapper stuff.