Improve import.h for FreeBSD 7, 8, and 9