Modify Ubuntu-specific linker handling