fix port change event, add third-party include files