fix some warning and disable errors-as-warnings

unfortunately, Erlang itself has warnings as of R17. we use
a hack with preprocessing, so we can't distinguish between
our's code and erlang's.