Fix: end() requires a variable
Fix: detect the operating system, not the CPU architecture