Fixed all warnings in gcc