Fixed bug in CMake utility function.
Merge branch 'next' of github.com:maidsafe/MaidSafe into next