added -fPIC to CFLAGS