os specific compile flags

Signed-off-by: Mattias Andrée <maandree@operamail.com>
simple implementation of cut, so there is not dependency on GNU's cut

Signed-off-by: Mattias Andrée <maandree@operamail.com>