Define Ant tasks after checking dependencies. Fixes #12.