Update to QGIS 2.4 and 64 bit build. Use ExternalProject.

* sundials and triangle will be downloaded and built on windows automatically
* shapelib will be downloaded and built on windows if not found (OSGeo4W64)