Changed terminal escape character to \033 instead of the GCC specific \e
Include limits.h in options.c to make PATH_MAX available
Cast const char* to char* to avoid compiler warning
Fixed range check in fgetln when realloc()ing

- Segfaults were happening on Solaris when realloc()ing the buffer,
  presumably after writing an extra byte past the allocated memory and
  corrupting the heap
Merge pull request #358 from elliot-forty-two/pull-portability

Portability