Security patches have been released by tech companies to combat the Spectre and Meltdown security flaws.