Closes #646: avoid `rm swig/ca*`: Applying patch mentioned at http://public.kitware.com/Bug/view.php?id=12307 to fix this, but do note that it does not play nicely with "configure_file". Luckily, we don't use that command (yet).
Closes #646 for windows
Closes #646: Fixes introduced bug