Only define kde_locks on PLATFORM_OS_UNIX.

They are only in the .hh file if this define exists, so have the same in the .cc file.
Bad workaround for undefined symbol.

Not sure what's going on here, but this lets it build.
Some notes on installation.