Updated Linux udev rules; fixed compiler errors for Linux/Mac targets