Fixed errors to get it working with ecelinux