DSP lib + library tweaks