Made boost aware of custom installation locations for python
Refactored some stuff, added --enable-shared for python build