Remove hard coded links, introduce code fro cross platform support