Extract RNG to separate library
Rename parser source files
Use safe allocator in parser
Fix warnings