Makes sure that the linked library with the original code exists. If it doesn't
        the library is compiled from scratch.

def _check_lib(self, remake, compiler, debug, profile):
        """Makes sure that the linked library with the original code exists. If it doesn't
        the library is compiled from scratch.
        """
        from os import path
        if self.link is None or not path.isfile(self.link):
            self.makelib(remake, True, compiler, debug, profile)