Make math_funcs.h use lrint on msvc 2013

msvc 2013 has lrint in math.h. This patch makes math_funcs.h use lrint if msvc is 2013 or greater.