Fixes issue when building the lib for archives