some fixes for linux
spike_extraction: deal with numerical instabilities in PCA/SVD