Attempt to work around compile errors on visual studio