fixes for building on OS X

Ondrej Platek emailed me some instructions on building pykaldi and getting the demo of online recognition running. In the process of building pykaldi on my Mac, I ran across a couple issues that had to be resolved. They are related to different behavior of the linker and a different environmental variable for the path for shared libraries on OS X.