Fixed linking to Gamma library