syntax fixes for microsoft compiler