Adds .pc file for LCM types, and various other small script bugfixes.