Strip off trailing spaces.
Add fseventsd based dir monitor for OSX.
Link necessary Core libs on OSX.