Only link against libogg (and libm) if needed

Most of the programs don't use libogg or libm directly and should not
link to them (overlinking).

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
7 files changed