Make hadoop-core dependency optional