Fixing build the serious way

This supersedes https://github.com/Notalib/LYT/pull/591

Each error fix in separate commit. CSS and javascript has been investigated for consequences.

I would like to remvoe the last error as well, but a solution to put `X-UA-Compatible` in the HTTP header must be fuond first.