Add erts to dialyzer apps

This prevents warnings about unknown functions in the erlang module.