Fixed compile time warnings from GCC on linux