Set variables for linking and building