Silence some warnings and change some const handling

int and bool are no longer passed as pointers (consistent with Qt)