fix for --skip-bs
fix for building with prefix