The package that was importing these dlls, had a content link that was causing the files to be copied after compilation.
The solution was to disable the conditional flag.
<ProperyGroup>
<CopyNativeIfxExtensionsContent>false</CopyNativeIfxExtensionsContent>
</ProperyGroup>