fixed missing header in matrix_basics.cpp

changed src/makefile. Now creates directory lib if not present for
compiled library file