Fix arch linux builds, fix configure script

- Fixed extractfuncs invalidly freeing a pointer which was never allocated
- Fixed configure script running cmake twice, also fixed the newline character being displayed on some platforms