Fix visual studio build (C89-compatibility)