Ensure libkdepim is compiled as static library.