move pathconf functions to shared
add freebsd pathconf constants