How to deal with different struct sizes per OS