Fixed linking function to not be confused by local module.