Fixes for FreeBSD and a couple of changes to visuals and compatibility