A bunch of cosmetics here.  I think all you're doing is adding URL.h ?