Fixed bug in msvc where long was interpreted as 4 byte