Generally, you can follow GIMP's compiling instructions to compile and install ingimp. However, some libraries that are optional for GIMP are required for ingimp. The following are required:
When compiling, you'll need to add the following switch:
--disable-gimp-console
On Windows, you'll also need to add the following switches:
--disable-print