Fixed all warnings in compilation, made make process much easier