common.h needs generic_types to build
Fixed fastmath compile errors.
Fixed some sphere.c compile errors.