Fixed last warnings. Added -Werror flag. Closes #39