matplotlib v1.3.1 fixes for Cygwin
Merge pull request #221 from hashdist/ahmadia/matplotlib_fix_cygwin

matplotlib v1.3.1 fixes for Cygwin