Miscellaneous build system improvements.