Fix project file and main.cpp