HDFS-5642: switch hcreate/hsearch to use new htable.
HDFS-5642: Do not try to link to pthreads on Windows.
HDFS-5642: several fixes in test code.