added -fPIC for static