Now, one thing that still breaks...
since there's no...
int main(int argc, char* argv[])
it breaks since there's no main declared
QR is meant to be compiled as a shared object and dynamically linked, no main function should be needed as that is defined in the application using the lib (see the example programs)