Fix build on OS X

On OS X the malloc header is inside /usr/include/malloc. Add that to the
include paths instead of changing the code to conditionally include
`malloc/malloc.h`.

uname_S is taken from git's Makefile [1]

  [1]: http://git.kernel.org/cgit/git/git.git/tree/Makefile
Ignore .dSYM files

These are debug symbols created when compiling on OS X.
Further improve speed of mime base64 encoding routines.
Base 64 decode is a little faster than libb64 on my AMD FX6100, and
a very slightly slower (a few percent) for encoding.  The speeds of
encoding and decoding are both approximately 4x faster than before
these changes.

Also optamize util.gettimeofday() and util.gettimemonotonic().
Merge pull request #122 from jsolman/master

Further improve speed of mime base64 encoding routines.
Squeeze a little more speed out of the base64_encode().

Switch the type of the array for the base64 output encoding to be
uint16_t[] instead of uint8_t[] and use a 16-bit counting index
instead of an incrementing uint16_t*. For some reason in the
encode function LuaJIT 2.0.2 optamizes this case using the array
index more effectively, and from the tests on my AMD FX6100 and my
laptop with an AMD A4 processor, the encode function on Windows
is about 2% faster than the libb64 encode (using binary available
from luapower.org). (Note: contrary to this example, in the
decode function using an incrementing uint8_t* pointer rather
than a counting index to the output bytes array is optamized
better by LuaJIT -- it would be interesting to look into this
further when I have the time to discover the reasons why the
jit compiler behaves the way it does in these examples.)
Merge pull request #123 from jsolman/master

Squeeze a little more speed out of the base64_encode().
Use C namespace, and create a better error message on connect failure.
Added port to log output.
Merge pull request #121 from pigoz/fix-build-macosx

OS X fixes
Corrected module documentation.
New logo.
Moved Travis shortcut.
New design logos etc.
update doc for get_json method
Merge pull request #124 from houqp/houqp-master

update doc for get_json method
Merge branch 'master' of https://github.com/kernelsauce/turbo