Weird mixups in native embedded client

These fixes is founded by using fbembed server on x64 OS.
Maybe some fixes should be discussed.
Well, thinking about it, it should not break something. It can only improve. :) I'll change that calls and in a few minutes, I'll create for you branch so you can test it.