Factor out platform dependent settings