Add dgemm and dsyrk cblas functions

This will maybe solve the segfaults in #1006