Local vars in buildscripts

Makes the environment modifications in the buildscripts local.
Also updates to the latest 1.0.1 stable branch from th original OpenSSL repo.