Fixed static build, and pdf.peg to appease older compiler(msvc)