Bugs detected while switching to 64bit arch. fixed

A few small bugs, mostly in UTs fixed:
* Format string for unsigned int in C LA UT
* Inclusion if unistd.h for sysconf and getopt in mt/thread.hxx
  and its UT