fixes for dialyzer found errors

and a make file fix that makes running dialyzer sane