clean up the main header
add some missing port defines