DF-185 fixed compilation on android. TODO: implement OpenFromBuffer for windows and android