Added support for installation on BSD systems.