Now compiles correctly, with a linker warning though.