Fixed higher WARNS levels while I was here (missing prototype for main(), and missing const poisoning).