Fixed small bugs

Fixed compilation warnings in Unix.