Added global flag to libraries