Linux & gcc compilation fixes

- Fix capitalization of filename

- Move variable declarations to beginning of block (required pre-C99)