Here's a patch that fixes the readline bug that happens when readline is
disabled. It also addresses the casing issue with SQL.apl.
Now, the file is called sql.apl in the source, but SQL.apl in the wslib5 directory.
It's still not possible to build on OSX with readline enabled. This is because readline defines a type called Function which clashes with a GNU APL class of the same name. Either C++ namespaces or a rename of the class to, say, APLFunction would solve this.
Patch is attached.
Regards,
Elias