build: Adding in a functional OS-detection system.