Fix compilation of lite builds.

Use a more flexible way to define if internal filters should be enabled or disabled by default.
Use conversion constructors to work-around confusing AStyle styling.
Use a bitcheck instead of casting (WIP).

Fixes CID #965944.