functional build system despite codeblocks bugs!