Use boost::unordered_map, fix build issues on OSX

- Replace std::try::unordered_map with boost::unordered_map
- Respect LIBRARY_PATH environment variable
- Search .dylib libraries on OSX
- Add *.pyc to .gitignore