Compile kdsingleapplicationguard as separate lib