Cleaned up CurlStack.
Fixed non-POSIX conformant included headers.