Hydrogen cyanide and formaldehyde can and do react under the conditions found on interstellar dust grains to form molecules that yield amino acids, and even species like the vitamin niacin, on further reaction with water. All you need is a frozen chunk of ice - or frozen carbon dioxide or methane - with hydrogen cyanide and formaldehyde in it, and some ultraviolet light to make it react. All of the above are formed in the atmospheres of red giant stars. Space is loaded with this stuff - particularly in the molecular clouds where new stars and their solar systems form.
Organic molecules as complex as niacin, amino acids, and even simple sugars have been found in the interior of pristine meteorites. They form abiotically - out in space. There are other pathways to form them abiotically on the early, oxygen-free Earth.