Make build scripts work with FreeBSD, make pdksh compile (not working yet)