Fixed error in vec and mat template types. Fixed errors for crosscompiling the library.