Correct abs->fabs,min/max->fmin/fmax + prepare glfw