OS X 10.9 SDK, rewrite HTTPSource and some other changes