imx_uart: add windows support for UART loader

This commit adds Windows support for the UART loader. The project
can loaded into Visual Studio 2012 and compiled with its default
compiler.

A getopt implementation for Windows is added too, License should
be fine since its LGPL too.