fix UNIX compile. Thanks to Blacksmitter!