Do not assume there is just one element in CMAKE_MODULE_PATH
remove extraenous return
Do not redefine va_copy if not needed (for example, VS2013)