Modifications to get the sample app running under linux