changed ints for hid_t
Tweaked cmake to force use of system libraries z, m, dl, nsl and util

This is possibly a hack that should be fixed some other way...