Fix definitions for platform specific code