Add missing configure.ac
anrcore: Remove unused variable

This unsafely casts a pointer to an int. Remove it since it is unused.
anrcore: Avoid casting pointer to int for printf

Just use %p
provide real functions for dirty list management.

for debug purposes, we may need to know where this code has an issue.

Based on a patch from Tyler Hall.