Fixed several building issues with VS and Intel C++ Composer