Final changes to make it compatible with FreeNAS 9.1