Add patches from Debian packaging

Hi,

Here are two patches produced in the Debian project, to support GNU/kFreeBSD system and using shared version of expat, including 1.95.

I'd be thankful if you merged them.