Add stdlib.h include for atol().

This attempts to fix issue #600. `man atol` claims that atol() is in
stdlib.h, which wasn't included yet.
Merge pull request #601 from nico/109fix

Add stdlib.h include for atol().
support Bitrig
cleanup based on comments from martine
ugh, missing #
Exclude Windows as well
Adding error checking on fwrite/fflush in deps_log
use !defined(NOT_PPOLL)
Adding checks for record overflow in deps_log
Merge pull request #607 from dajohi/master

Support Bitrig
Use fwrite to print whatever the subcommand wrote

Subcommands can write things like UTF-16, which some terminals can
understand.  printf() will interpret the null bytes as the end of the
string.

In particular, MSVC's assert() will print wide characters by default,
and I can't find a way to disable it, leading to clang assertion
failures looking like:
  FAILED: ...clang.exe ...
  Aninja: build stopped: subcommand failed.

With this fix, I get the desired:
  FAILED: ...clang.exe ...
  Assertion failed: SymbolMap...
  ninja: build stopped: subcommand failed.
Merge pull request #610 from rnk/wstr

Use fwrite to print whatever the subcommand wrote
Improve error message for duplicate rules and unknown pools.

Also add more tests for invalid manifests. According to gcov, these invalid
inputs weren't tested before.
Mention pools in the discussion of ninja's toplevel declarations.
Fix murmur hash implementations to work on strict alignment
architectures like OpenBSD/mips64el and OpenBSD/hppa64.
Merge pull request #615 from mdempsky/strict-murmur

Fix murmur hash implementations to work on strict alignment architectures
Add a 'recompact' tool, which forces recompaction of the build and deps logs.

This is useful for performance comparisons between two build directories.
Introducing tool 'deps' dumping ninja deps log entries
Merge pull request #611 from nico/testparse

Improve error message for duplicate rules and unknown pools.
Merge pull request #614 from nico/pooldoc

Mention pools in the discussion of ninja's toplevel declarations.