better linking of math library
added pkg-config files
fixed makefile