add -fPIC in Makefile for Ubuntu compiling