fix build failure if snappy is missing

this pr is to fix [MAPREDUCE-5976](https://issues.apache.org/jira/browse/MAPREDUCE-5976)