Support Windows builds with MinGW

- Our surrogate inttypes.h is only needed for Visual Studio 2010 and
  earlier, due to the lack of C99 support.
- Move all the inttypes.h includes into host_config.h, where we can
  do the ugly in a centralized location
- MinGW on Linux is case-sensitive -- reflect that when including
  windows.h.
update debian/copyright to match inttypes_msvc.h rename
Merge pull request #264 from rtucker/win-mingw-fixes-inttypes

Support Windows builds with MinGW
bladeRF-cli: Fixed invalid memset length when zero-padding a buffer

The memset used to zero the remainder of a buffer contained an incorrect
length calculation that could result in negative value, which is then
used as an unsigned value. This resulted in at attempt to zero of a very
large region of memory.

This calculation was failing to convert samples to int16_t's, and the
final length to zero (in int16_t's) to bytes.

Thank you to drmpeg and LazyDodo for their help on debugging and
resolving this issue.
Modify the RXVGA2 calibration routines to enable test mode signals
Calibration update.
libbladeRF: Moved LPF DC tuning value write into address loop

This is just for readability. There's no functional change, since
there's only 1 address to loop over anyway.
libbladeRF: Added register settings from LMS FAQ to DC calibration fns

The following changes have been added to lms_dc_cal_loop() and
lms_calibrate_dc(), based upon recommendations from the LMS 6002D FAQ
(version 1.0r10).

    - Use the DC_REGVAL to determine success or failure, as DC_LOCK
      is reported (in the FAQ) to be unreliable. Retry if the result is
      31, setting the count to DC_CNTVAL to 0.

    - Enable DC comparators during DC calibration (default), and
      disable them upon completion to address linearity issues.

    - Disable DACs while performing TXLPF DC calibration
bladeRF-cli: First cut at RX DC auto calibration

Includes a workaround for convergence issues - further investigation
required. General cleanup and documentation changes still required.
bladeRF-cli: Use fewer buffers for dc cal, start with cal at 0,0
bladeRF-cli: Added TX DC cal operation. Further cleanup required.
bladeRF-cli: Check for divide-by-zero in interpolation function
libbladeRF: Be explicit with RXVGA2 cal.

It was seen that the VCM will sometimes come back in a bad state.
This register has a very well known value that it should be.  Setting
it to be these explicit values seems to help alleviate putting the
LMS is a bad state.

Investigation is required to figure out why the VCM is coming back
scrogged.
bladeRF-cli: Extend out DC, GAIN and PHASE max/min.
bladeRF-cli: Fixed uninitialized error value for TX DC cal
bladeRF-cli: Added RX DC cal option that skips LMS calibration
libbladeRF: Disable LNA while performing LMS DC tuning
libbladeRF: Perform LMS RX DC cal during device initialization
bladeRF-cli: cal dc_rx/tx no longer perform LMS calibration
bladeRF-cli: Attempt to narrow RX DC auto cal value, removed dummy RX