r2: warning fix
generic: warning fixes
generic: use own macro for hunkmegs values