A Lancashire teenager accused of the murdering three girls in Southport has appeared in court charged with a terror offence and making the poison ricin.