Add missing semicolons, fix port collisions.