public function __construct($version, $name = null, $installPrefix = null)
{
$this->version = $version;
$this->name = $name ? $name : Utils::canonicalizeBuildName($version);
if ($installPrefix) {
$this->setInstallPrefix($installPrefix);
} else {
// TODO: find the install prefix automatically
}
$this->setBuildSettings(new BuildSettings());
$this->osName = php_uname('s');
$this->osRelease = php_uname('r');
}