Weird mixups in native embedded client

These fixes is founded by using fbembed server on x64 OS.
Maybe some fixes should be discussed.
See https://github.com/cincuranet/NETProvider/commit/ab8e3c80f45b646f40f277ecdc76270e6bb95f96 .