improved buildprocess

I improved the build process a bit and changed how the wrapper is build and added a install target