Fixed bug that defined samp_t as int64_t, and added "app" build concept.