Move thirdparty into core. Closes #2