Fix stat.st_gid on FreeBSD 10

FreeBSD 10 has an ld script for /usr/lib/libc.so. It is reported as "invalid file format", and not "invalid ELF header". Moreover it starts with a comment, which prevents the current regex to properly match the GROUP clause.

https://github.com/ffi/ffi/issues/308