silence warnings and link math library