Review/bcc fixes

Added stdint.h header for intptr_t declarations and fixed minor
preprocessor issue (wnt case under unix block & borland case).

Reflect type changes in wok build system.

Added io.h header for dup declaration