Added missing function declarations in main.cpp.