cmake: Update to 2.8.11.2 + Fix CTest custom commands

For more info about the patch, see:
https://github.com/NixOS/nixpkgs/issues/762
http://public.kitware.com/Bug/view.php?id=13887
http://article.gmane.org/gmane.linux.distributions.nixos/11292/match=