Fixed IECore::Lookup for OS X.

I'm not sure why the compiler didn't like the templated constructor, but using boost::function instead fixes the problem and makes it more flexible anyway.