Unfortunately, the error you get there is although correct, a bit incomplete, at least in my humble opinion, it should tell you that you should check if libgimp2.0-dev is installed.
Check if you are missing the package libgimp2.0-dev, described as Headers and other files for compiling plugins for The GIMP.
If you don't have this installed, your system doesn't have the necessary information needed to compile a plugin for GIMP (happened to me also).
So, if you are on Ubuntu:
sudo apt-get install libgimp2.0-dev
./configure
make
sudo make install
Enjoy, and thanks to whomever built the plugin!