os: fix for bug 1046: OSX 10.8, boost 1.54, apple-gcc-4.2 RTT main-test FAILS

Apparently copying the boost functions went wrong and we ended up with a NULL pointer.
Fixed by directly using the function pointer instead of the boost function.

Signed-off-by: Ruben Smits <ruben@intermodalics.eu>