GTest: add support for FreeBSD and Hurd