As a catch all, can we just do as a last resort always try Linux?
if(windows...){
}
else if(mac...) {
}
else {
PLATFORM = PLATFORM_LINUX;
}
It doesn't seem like it will hurt anything; if the Linux files don't work, it won't be a big deal as it wouldn't have worked anyway.