As usual - no erlang:min(A,B) in R12B-5 and earlier

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
Another fix for R12B - escript can't use defines

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>