Fixing a bug in the compatibility mode (half of the bug was caused by Libtool).