Moved main to main.cpp: still getting compiler errors