add freebsd specific get_mode method
Merge pull request #15 from presto53/freebsd_file_get_mode

add freebsd specific get_mode method