MRQL-60: Fix building dependencies for hadoop 1.x