added --with-uid/--with-gid configure option
client side only uses an external SIM reader library specified with SIM_READER_LIB untested
includes a lot of other modifications