Fix to bug #514, http://bugs.mariadb.com/show_bug.cgi?id=514
Excluded unused functions from build with #if defined(NOT_USED) .. #endif macros