For Windows MinGW address the "ISO C99 requires rest arguments to be used" error
Add CMake options for Win32 to require PCRE
Fix enabling of LIBNFC_DEBUG_OUTPUT

- inclusion of log-printf.c didn't align with needed preprocessor definitions
- Added extra #error as well as preprocessor protection
- fixed CMakeList to specify -DLOG as appropriate per the header log.h usage
Fix setenv/unsetenv link errors by implementing a local version using Windows SetEnvironmentVariable.

Untested, and does not comply with the error returns per setenv.
Fix all utils compilation on windows.

- As nfc-utils now references str_nfc_target from the lib itself, so the static lib was not properly referencing the libnfc itself, so the final utility link would fail.
- Simply added the libnfc as a target for the static nfcutils library internal to cmake
Windows: getopt usage in nfc-read-forum-tag3 fixed by referencing correct header
Windows: Fix nfc-scan-device to compile by linking in contrib/nfc_win32.c

Re-factored the executable call with a list that is created, so that its easier to modify per tool.
Fixes pn53x_usb timeout while bulk write.

Thanks to Tredger for reporting.

Fixes issue 223.
Updates ChangeLog
acr122_usb: remove pn53x_idle support. Fixes issue #217
Changelog
acr122_pcsc: fix log category
Add driver-dependent PowerDown
pn53x_idle: call driver-dependent PowerDown & do InRelease first, skip redundant InDeselect
call idle() from driver-dependent close() rather than from nfc_close() as some driver still need to do an ack() before
For Windows MinGW address the "ISO C99 requires rest arguments to be used" error
Add CMake options for Win32 to require PCRE
Fix enabling of LIBNFC_DEBUG_OUTPUT

- inclusion of log-printf.c didn't align with needed preprocessor definitions
- Added extra #error as well as preprocessor protection
- fixed CMakeList to specify -DLOG as appropriate per the header log.h usage
Fix setenv/unsetenv link errors by implementing a local version using Windows SetEnvironmentVariable.

Untested, and does not comply with the error returns per setenv.
Fix all utils compilation on windows.

- As nfc-utils now references str_nfc_target from the lib itself, so the static lib was not properly referencing the libnfc itself, so the final utility link would fail.
- Simply added the libnfc as a target for the static nfcutils library internal to cmake