ansi c corrections for fixing default behaviour on MSVSC