fix mahout platform bugs and make kvtest work
fix bugs in hbase and hive key serializers