add -fPIC to generate Position Independent Code