Patch/fix ninja phony

This is accompanying pull request for bug: http://www.cmake.org/Bug/view.php?id=14972

Resolves duplicate phony targets generated for Ninja.