Cygwin fixes

Fix issues with ParMETIS, PETSc and DOLFIN on Cygwin.