Fix test/Makefile.am to pass build on x86-64 SDK
Fix test/Makefile.am to pass build on x86-64 SDK

Modify test/Makefile.am to link against pthread, otherwise it
gets link failures related to pthread.

Add OESDK flags, otherwise the binaries fails to execute on host.

Tested: Building the tests well on x86-64 SDK.
        Executing of the tests are OK.
        But several test cases fail or stuck at running.

Change-Id: I649d7ec566a44fe51d2b8c852cb20d8769b28d30
Signed-off-by: Lei YU <a3094571254a8e1f82a212e5bbbfd045adf48936@gmail.com>

openbmc/sdbusplus,openbmc/sdbusplus,openbmc/sdbusplus,openbmc/sdbusplus