Merge pull request #1068 from dottedmag/bugfixes-osx

Bugfixes osx
.gitignore
Make extra chpasswd tests for AIX.
Fix Windows compilation regarding libpam.
Merge pull request #1070 from kacfengine/master

Fix Windows compilation regarding libpam.
Remove unused pthread_locks
Fix build error: Automake if, else and endif statements should not be indented
Merge pull request #1071 from dottedmag/cleanups/locks-removal

Remove unused pthread_locks
Merge pull request #1072 from lpefferkorn/fix_cfagent_makefile_am

Fix build error: Indentation typo in cf-agent/Makefile.am
NULL terminate the buffer received from TLSRecv(..)

assert_string_equal(..) fails because the received string is not null terminated
Merge pull request #1073 from awsiv/master

NULL terminate the buffer received from TLSRecv(..)
Merge pull request #1074 from kacfengine/aix-fixes

Make extra chpasswd tests for AIX.
Detect lack of libpam-dev during configure.
Remove MONGO remnants from the pre-repo-split era.
Avoid spurious failures when rerunning the test due to socket not yet being released.
Merge pull request #1076 from jimis/varfix

Varfix
Made PAM detection more resilient, and catching some more errors.

Force PAM on platforms where it is known to exist, make it optional on
others. This also switches out the test for usermod tools with tests
for PAM instead.
Don't rely solely on PATH variable when configuring.
Bind to the port we mean.
Merge pull request #1077 from kacfengine/configure-fixes

Some fixes making pam detection more resilient.