Make compile based on what function is found.  See Issue #320 or #321