add memcpy_s and _countof to GNU C++