If the IAppBuilder interface does not contain a “UseWebApi” function, this might be caused by a missing NuGetPackage “Microsoft.AspNet.WebApi.Owin”.
After installing this NuGetPackage the function was available.
See: http://www.jeffwids.com/post/where-does-iappbuilderusewebapi-come-from