Default to 4.0 sdk.
Update build scripts.