Restructures thirdparty directory, updated makefile

Makefile should be platform-independent now, but that needs testing
(can't right now).