GNU C++ errors/warns fixed