Remove parts that are now implemented in NuttX from math.h
Replace macro with function to avoid having the macro match arbitrary function calls
Fix I2C mem kernel allocators