Added missing compiler option for shared lib code