Fixed build errors for raspberry pi