misc fixes to address install related errors during cmake-generation stage when building static.
install