added -fPIC to compiler options