replacement thread safe malloc and free
Small refactor, expose Soft interrupts