there is more to building than just compiling your module. try removing the reference to the library (since you're not using its dialogs anyway). the error message appears to refer to the library (which is compiled with your app, assuming you haven't already removed it).
by the way, removing the library may throw a different error, which might lead you to something of interest.