Fixed c90 warnings