Improve the NIF flags to check for NIF version

Check for schedulers only if compiling against enif 2.7 or
later (which is Erlang 17.3)