fixed gcc build for FreeBSD