fix building main.cpp when readline is available

This changes around the pragma conditionals to make sure that certain
symbols (such as "default_search_path") are defined even if the system
has readline available during builds.
Merge pull request #96 from kanzure/fix-readline-build

Make main.cpp compile when readline is available