Fix core release build