Fix static build, remove dependency to pkg-config