fix git version get
link to MaxAPI.lib rather than let the system find the right one (conflict with MaxAPI.framework ?)
avoid failure by discarding return status
better detect Files.h
put everything common to all externals in Shared/Cmake/MaxExternalCommon.cmake