* some modifications to allow gcc to compile same code for -fPIC