Fix producing of incorrect output due to memcpy overlapping
  by added option -D NOMEMCPY to compile section.
  (#1161302)