Some Linux-specific fixes.

- Makefile had a bad -I path.

- Wrapper had some typo's that prevented compilation.

- Wrapper ahd some missing types/assigninments to complete realloc swap.