fix raspberry pi builds and stacktrace