Use ant debug in non-release environments. Fixes Bug#988644