Added option for enabling LTO in the build system.

Also removed redundant imports in cmake