The use of econf in the current firefox portage-ebuild brakes the firefox pkgconfig-files, which it provides. Therefore using the firefox-headers to build an application is not possible.
Seems to be fixed, although this is a dirty hack, after 1.0.3.