Fixed incorrect permanent reference to unix function. Now the correct function is used at compile time.