C++ port: fixed warnings for Symbian build