Build script: Updated build order and patches. Fixed typos in comments.