ifdef'd the log code, so win stuff doesn't break