Update: properly export API on linux
- Also compile as std20
Had to redo my approach to code duplication - gcc was ignoring my annotated forward decl(probably because it was encountered after full definition).
Tests: checked with `nm` - symbols were demangled. Tried running server on linux - crashes immediately