added checks for erlang version on compile