Adding build support for OS X. - Using getpwuid instead of getpwd. - Making soname suffix a variable. - Printing load exceptions on startup.

Signed-off-by: Randall Gray <Randall.Gray@csiro.au>