Restore linux build

A conditional compile should allow the code to build successfully on
both MSVC++ and Linux