fix for ubuntu 14.04 64-bit. add library_dir entry and make sure we use ...

I'm not sure if this is the correct/best solution, but at it worked for me.