Managing platform-specific code