Remove unused headers from .h, include needed ones directly in .cpp
Found and suggested by clangd LSP plugin.
Note: this patch is required (is a blocker) for the corresponding patch in libkscreen, as this is a breaking change in the API (although being a side-effect of uncontrollable visibility rules of C/C++).