Make hamcrest optional