NDEBUG compile issue