modified common.h for FreeBSD10.0