Ensure that all necessary object files are used when building the .so/.a