Implement platform-specific dependencies

cc #610
Could you push this filtering into `resolve_features` instead?