ALLJOYN-1946: Fix daemon crash on Linux when both syslog and stdio output is used at the same time.

Change-Id: I3d2a6046c99489606e18a4e92ca6a745fe38ba5f
ALLJOYN-1946: Fix Android build.

Change-Id: I62b06133978beb24ec1cdb711f4a991ff5a45f8c