Convert to be amd compatible. Change template to be a pre-compiled template rather than compiling within library.