removed some warnings, fixed build systems