Fixed some configuration issues, particularly to due with installing and cmake configuration files.