Removed unused file.
Changes system() by helper_system()
Improve and fixed some issues with build system and dependencies check
Created debug settings by environment variable
minor issues