The problem was uncovered by the last security patches. Firefox seems to build and work fine. Includes reverting 374a9cc1, as this is a proper fix.