Add unsafe-perm to deal with preinstall as root.
Fixes for linux compile.
Update readme.