Make sure -fPIC is added to static library compile