split main.cpp and other src to 2 dirs.
unix: make pcreator can be run at other dirs.