added -lm to CORE_LIBS #3610102