add build scripts and deps for FreeBSD