Various fixes

This fixes an issue where the script would crash halfways with a 'permission denied' error from `wget`. It also adds a few remaining packages to the list of required ones in README.md (for Ubuntu); that should save anyone else from having to spend excessive amounts of time guessing why things aren't building properly.