More compile fixes, initial support to just list DB_DIR files via cgi