util/os_memory: use detect_os.h to uncouple it from gallium