Shouldn't be the env programfiles better used in module sqlite3.lsp?
Instead of:
(> (& 0xF (last (sys-info))) 4) (set 'library "/Program Files/sqlite3/sqlite3.dll")
better this:
(> (& 0xF (last (sys-info))) 4) (set 'library (string (env "PROGRAMFILES")"/sqlite3/sqlite3.dll"))