Fix release build compiler warnings