Fix warnings in gcc