compile on FreeBSD with gcc47