Fixed issues with static installation.