Build: move all external libraries to external directory

Closes gh-270