Make main.cpp compile when readline is available

Some of the symbols were defined in preprocessor conditionals and thus weren't available when the readline branch was picked. This seems to fix the build, any hints on running tests to confirm whether or not I have broken everything?