Fix interfaces
MAP_FAILED exists
C++ify