/* Some compatibility code to work on more limited platforms Copyright (C) 2015