If you have VirtualBox/ESX, you can grab a pre-made builder image from here:
http://devwiki.pfsense.org/DevelopersBootStrapAndDevIso
You can use that VM to compile things and then move them to the firewall.
The usual disclaimers apply, though, anything you install will reduce the overall security/integrity of the system, yadda yadda yadda.