Fixed broken compiler and linker flags in the tests.

Summary: The test Makefile.am was missing flags for libpng.

Test Plan: Build Diana. Already tested.

Reviewers: lisbethb

Reviewed By: lisbethb

Differential Revision: https://phab.met.no/D12