Remove dependency on glu and remove other unnecessary linkage