Add FreeBSD specific versions of the GetProcessState and GetProcessStartTime
functions (Redmine #2330)
(cherry picked from commit 2c6578ed3033e2a64c0a61d56c8a17fbb667fa68)
When checking the process state on FreeBSD, return PROCESS_STATE_RUNNING if
the state is SZOMB
(cherry picked from commit 6caade87e48205afdeaee10b190d4f2f44e2009e)
Return false in GetProcessStat if sysctl does not return 0
Add parenthesis to sizeof to confirm to preferred code style
Don't cast pid as an int
(cherry picked from commit 74d4bd0afcd96dca1a09dd4b2e00d190283d95f5)