Lightweight OS abstraction layer for C++