Fix getopt return type. Fix oned startup in armv6l