fix port build and sys.config