[sd2_mr0572] fix win compile, broken in "fix windows compile after 2715", big thx to przemratajczak. also solve problem with compile with -n option under ubuntu (correct depedency added).