Compile away DEBUG if NDEBUG & add pid support