Move MIN to syshdr.h

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
Use strtoul to parse numbers

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>