Compile C test sample code with -fPIC