Removing unecessary compile-time linking