Enabled debug builds and fixed builds for x86.