fixed typo in makefiles
Added platform specific implementation for clock