Turned off warnings and fixed build ar errors