added -fPIC compiler flag