Fix build in debug mode