Extract main.cpp from libOL, put elsewhere