Fix windows compilation.
revert wrong fix visibility of return_http_status

Signed-off-by: Andy Green <andy.green@linaro.org>
unconfuse quoting in CMakeLists.txtt

via Marjan Tomas https://github.com/warmcat/libwebsockets/issues/67

Signed-off-by: Andy Green <andy.green@linaro.org>
Add missing LWS_VISIBLE to libwebsocket_set_timeout()

This aligns it with the style of all other function declarations.
Fix endian detection on non-linux systems

f975f736408f32e7384cf38270a7806e68d5e112 introduced inclusion of endian.h,
which is not a standard header. Only include it on Linux machines and
add similar includes for Apple and FreeBSD.
Replace perror() with lwsl_warn()

Use the general logging function for printing error messages.
Avoid calls to gettimeofday()

Add a new function to get the current time in microseconds, since gettimeofday() does not exist on Windows.
Keep the current implementation for the test applications.
Rename leave to cleanup

The name ‘leave’ can not be used on some Windows CE platforms, so rename it.
Use native file functions on Windows

Add a special implementation with CreateFile(), ReadFile() and CloseFile()
for serving HTTP file request to allow compilation on all Windows platforms.
Fix Content-Type header of http status response

The header for setting the mime type is called ‘Content-Type’ and not ‘Mime-Type’.