Export pragma only on x86. Remove uneeded std::max in main.cpp