Did you try the sudo apt-get build-dep gimp that @Dave_Jones suggested above? (Hoping that solves the problem).
sudo apt-get build-dep gimp