Implemented metafunction to select whether to link a callback or not at compile time.