version 0.07, apply typename patch to fix building on FreeBSD