use -fPIC when linking for gcc 4.6