Linux: add platform-specific define and merge types