Fixed build in debug mode