Add libm to libpc build