rtlib: fixed warning about uninitialized values and built error on mingw

There theoretically were instances where the value would be uinitialized.
The build errors only affect certain gcc versions and the way implemented
should not interfere with a working compiler.
added travis ci yaml config