Changed the LINK_EXTERNAL macro to match modern cake (and fix build errors on gentoo)