Turned out the problem was that I was building with libc64. Seems to be
a problem in the include files as every build I've used libc64 has had
this problem. Using the libc63.dll that works as a forwarder to
libc64.dll is fine if built with the libc63 tree. Investigating.
Dave