Bump to 0.40
Add repos, update dependencies, select compiler version