Fix prepare.sh and add build/ to .gitignore