Use memcpy for FreeBSD

Without this change, font-ends cannot link with libtoxav on FreeBSD.