Fixed compile when building for GIMP 2.8 or later. From changes by Ed J.