Fix visual studio compiling (haven't compiled my mod with it in forever ...), remove fmin/fmax