This patch is from the FreeBSD 10.0 devel/gdb port and adds the LDFLAGS to
link command line with Python enabled.
Note, this may effect some hosts if there are library clashes.
Fix the output from the simulator to gdb to use gdb interfaces
so the output is passes through the MI protocol if used.
Add a nouartrx option to the simulator so it does not block on
an stdin read. The termios settings put the tty into non-blocking
mode however the read sometimes blocks on high loads.