Cross platform coding issues in C++ for Windows/linux

compilation