update ppport.h. fix portable issues