Fix Glances 1.7 to work on FreeBSD and OS X (issue #274)