move platform related code to settings.h, which should not be tracked by git