add platform option to user_agent_parser