library type specification to build under Mac OSX

These changes mostly solve issues building under OSX using current boost and postgresql. The remaining issue is that librouting_tsp and librouting_ksp are built as static libraries (.a) rather than dynamic (.so), so the create extension command in postgresql complains that it can't find the files. I haven't been able to figure out how cmake decides to do this.