Use import with local names instead of include

Fixed extension handling problems in ant 1.8 on Travis-CI.