Fix static build, setting the LIBXML_STATIC definition correctly and building with position independent code.