Fix release build target

Also alters debug building to use the ${ProjectConfig} variable