Still, it's quite annoying having this kind of difference between 2 OS
You're not using the right tools.
If you want a fixed timestep, read articles about it, there are well known implementations.
If you want a "good" framerate, to avoid huge or tiny update times, and thus potential graphical artifacts, enable vertical synchronization.
In any case, if your code is broken because of +-2 FPS, then it's badly written.