Fixed and ignored some warnings in the gcc build