[SW 006] Fixed compiling on MAC.

#IFDEF for everyone!