Use build tags instead of checking platform at runtime.