Increased warning levels on compiler and fixed issues.