Explicitly link against -lm and -lstdc++

Ubuntu 14.04 is a bit more pedantic about explicitly linking against
libraries.  Add 'm' and 'stdc++' to the linker list.