The ebuild should be fixed to require media-libs/lcms-1.14-r1. It's the oldest in portage but I had an older version installed, and the compile crashed since I couldn't find lcms.h file. Updating this package fixed the problem for me.
So upgrade your system properly using --deep. ;)