The build process changed a lot from 4.0.5 to 4.0.6 and there are numerous problems with trying to build 4.0.5 in a modern environment.