freebsd9 ctypes fixes