I think this is the way to go. Instead of #ifdef windows , if you put a -D _UNIX in your make file and check on that instead it should go. (Once again, please keep in mind I have not worked on unix in a while and dont remember exaclty how to define things in a make file. I think the underscore is ignored with the -D but check on that please)
Matt