Add multiplatform support and FreeBSD specific paths