Splits out third party locations in makefile
Improves makefile

* conditional release mode
* per-platform locations for third party code