changed spec and Makefile for a better build process