added -fPIC flag for shared lib 64-32 bit