Changed fsockopen by CURL. Now the library can be installed in hostings without fsockopen support