link in memcpy after opts and lto if it shows up only at that time
fix compiling of postrinsic memcpy when in forced c++ mode for the main file