fixed build issues. autotools is made of pure evil.