MinGW Port & 2 new options

Hi Lu, I modified the code to have it compile under MinGW and fix the template (manifest) for '\r'.

I also added 2 new options:
  --base-tmp-dir <string>       base temporary directory - will create pdf2htmlEX-XXXXXX under it (default: "C:\\Temp\")
  --max-output-size <int>       maximum output size, in KB (-1 for no max) (default: -1)

Let me know if you have any questions.

Thanks!