Only set the debug callback in debug builds