Increated portability and Fixed ZFS issues in MySQL Handler