fix OSX compilation

this fixes the ifdef to use the actual one used during configure