adjust another file for freebsd
improve and add patches