adding static flags for shared lib