Add __assert_func

* Fixes undefined reference with DEBUG=1 issue #692