fixed compile error when lapack not installed for logdet constructor and its unit test

thanks @lambday!