Refactor linear heap code (formerly known as GSP heap)
initSystem: fix global ctor/dtor code
Merge branch 'refactor' of github.com:smealum/ctrulib into refactor