Add missing libs
Add missing include
Silence pointer cast from integer warning.
Remove old init scripts, add systemd unit and udev rules