scons: Use LINKFLAGS for -pthread
Add OMERO_API to all upCast declarations