Compilation failure for Android, errors on Object.cpp and Value.cpp

I have set up Cocos Creator couple days ago and getting compliation problems e.g.:

D:/PROGRAMOWANIE/CocosCreator/resources/cocos2d-x/cocos/scripting/js-bindings/proj.android/../jswrapper/Value.cpp: In constructor 'se::Value::Value()':
  D:/PROGRAMOWANIE/CocosCreator/resources/cocos2d-x/cocos/scripting/js-bindings/proj.android/../jswrapper/Value.cpp:38:34: error: 'memset' was not declared in this scope
           memset(&_u, 0, sizeof(_u));

 D:/PROGRAMOWANIE/CocosCreator/resources/cocos2d-x/cocos/scripting/js-bindings/proj.android/../jswrapper/v8/Object.cpp:207:61: error: 'memcpy' was not declared in this scope
           memcpy(jsobj->GetContents().Data(), data, byteLength);

Cocos Creator: 1.7.0
Cocos2dx: shipped with CC
Android Studio: 3.0.1
NDK bundle: 16.1.44(…)
Target: Android API 22, ABI armeabi-v7a

I have removed all the old deployments of NDK and cocos, so it should run on the settings above. I have also run python scripts from cocos2dx to get dependencies and env. variables correct.

The same error occurs when trying to build from within Cocos Creator and Android Studio. I’m compiling simple hello world application.

Do you have any ideas how to fix this? I’m entirely stuck…