Build CMEM library only if platform is specified.