Update ppport.h to 3.24
WIP: Thread safety!