also copy hamcrest jar to lib/optional for building ant, if available

required for ant v1.9.4, it seems