Two commits needed to make fig build for me

Hi!

I like the idea of this project and will follow its progress. In order to make it build on my Ubuntu machine these two patches were needed.

Is it something you might consider?