Fix release build related problems in the example