Adding -lm which is necessary on Linux