F check for defined port

Also fixed an error in Cmake include directories