Make main.cpp compile when readline is available

Some of the symbols were defined in #pragma 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?