Fix is_directory()
Use c_str() to enforce 0 termination.
Disable token look ahead; it breaks parsing.
We do not define LTDL_SHLIBPATH_VAR, just use LD_LIBRARY_PATH etc.