Add fPIC and remove crap from makefiles
s/vsprintf/vsnprintf