Add freebsd 9 and 10 support