Linked libpng successfully with cmake.