Reduced compile time by combining static and shared lib compilation