Add options to exclude GL library from linkage.